package com.ljw.gulimall.authserver.feign;

import com.ljw.common.utils.R;
import com.ljw.common.vo.UserLoginWxVo;
import com.ljw.gulimall.authserver.vo.UserLoginVo;
import com.ljw.gulimall.authserver.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("/member/member/wxLogin")
    public R wxLogin(@RequestBody UserLoginWxVo userLoginWxVo);
}
